$OpenBSD: patch-wcmgr_c,v 1.2 2014/05/22 15:13:37 jasper Exp $
--- wcmgr.c.orig	Tue Apr  8 20:58:18 2014
+++ wcmgr.c	Tue May 20 22:22:14 2014
@@ -203,7 +203,7 @@ const char *ttl_age(time_t now, time_t then)
    mins=age/60;
 
    /* format the string */
-   sprintf(our_buffer,"%02dd:%02dh:%02dm",days, hours, mins);
+   snprintf(our_buffer, sizeof(our_buffer), "%02dd:%02dh:%02dm",days, hours, mins);
 
    /* and return to caller */
    return our_buffer;
@@ -415,7 +415,7 @@ void purge_cache()
 
    /* generate output filename */
    memset(out_file, 0, sizeof(out_file));
-   sprintf(out_file, "%s.new", in_file);
+   snprintf(out_file, sizeof(out_file), "%s.new", in_file);
 
    /* open the output database (read-write) */
    if ((i=out_db->open(out_db, NULL, out_file, NULL,
